<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.durcframework.core.UserContext"%>
<%
	if (UserContext.getInstance().getUser() == null) {
		request.getRequestDispatcher("/login.jsp").forward(request, response);
		return;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>实施管理系统</title>
<jsp:include page="view/taglib.jsp"></jsp:include>
<style type="">
.logo a{
	font-size: 20px!important;
    color: white!important;
}


.header {
    background:#2dc3e8;
    height: 40px;
    font-size: 20px;
    color: white;
}

</style>

<script>
	logoutFun = function() {
		$.ajax({
			type : "POST",
			url : ctx + 'logout.do',
			dataType : 'json',
			success : function(result) {
				if (result.success) {
					location.href = 'login.jsp';
				}
			},
			error : function() {
				location.href = 'login.jsp';
			}
		});
	}
</script>

</head>
<body class="easyui-layout" data-options="fit:true,border:false">

	<div class="north" data-options="region:'north',border:false">
		<div class="header">
			<div class="logo"><a href="/rms/swindex.jsp">实施管理系统</a></div>
			<div class="logout">
				欢迎你，<%=UserContext.getInstance().getUser().getUsername()%> 
				| <a href="javascript:void(0)" onclick="updatePswd(); return false;">修改密码</a>
				| <a href="javascript:void(0)" onclick="logoutFun()">退出系统</a>
			</div>
		</div>
	</div>
	<div data-options="region:'center'">
		<div id="tabs" class="easyui-tabs" data-options="fit:true,border:false,closable:false">
			<div title="首页"></div>
		</div>
	</div>
	<div class="west" data-options="region:'west',split:true,title:'系统菜单',collapsible:false">
		<ul id="tree"></ul>
	</div>
	<div class="south" data-options="region:'south'">
		<div class="copyright">copyright</div>
	</div>

	<div id="tabsMenu" class="easyui-menu" style="width: 120px;">
		<div name="close">关闭</div>
		<div name="Other">关闭其他</div>
		<div name="All">关闭所有</div>
	</div>
</body>
</html>